package com.wc.AlgoOJ_train.train1.c0.A006;

import java.util.Scanner;

/**
 * @Author congege
 * @Description
 * @Date Created in 2023/12/24-21:29
 */
public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        while (sc.hasNextInt()){
            int n = sc.nextInt();
            int ans = 1;
            while (n-- > 0){
                int num = sc.nextInt();
                if ((num & 1) == 1){
                    ans *= num;
                }
            }
            System.out.println(ans);
        }
    }
}
